package com.qf.feign.fallback;

import com.qf.feign.GoodsFeign;
import com.qf.pojo.Goods;
import org.springframework.stereotype.Component;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
public class GoodsFallback implements GoodsFeign {
    @Override
    public String query(Integer id) {
        return "服务降级了";
    }

    @Override
    public String findById(Integer id) {
        return null;
    }

    @Override
    public String findDetails(Integer id) {
        return null;
    }

    @Override
    public String save(Goods goods) {
        return null;
    }
}
